home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Bus
/
S
/
SALESCALC.cpt
/
SALESCALC
/
Sales Ratios
/
card_2901.txt
< prev
next >
Wrap
Text File
|
1987-12-10
|
14KB
|
621 lines
-- card: 2901 from stack: in
-- bmap block id: 5349
-- flags: 0000
-- background id: 2712
-- name: Calculator
-- part 1 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=224 top=316 right=339 bottom=314
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: CALCULATE
----- HyperTalk script -----
on mouseUp
set cursor to 4
set the numberFormat to "0."
--calculate for Annual Activity
put card field "GOAL" / card field "AVG SALE" into card field "S-A"
put card field "S-A" * card field "R:1" into card field "P-A"
put card field "P-A" * card field "R:2" into card field "A-A"
put card field "A-A" * card field "R:3" into card field "C-A"
put card field "C-A" * card field "R:4" into card field "D-A"
--calculate for Quarterly Activity
put card field "GOAL" / card field "AVG SALE" / 4 into card field "S-Q"
put card field "S-Q" * card field "R:1" into card field "P-Q"
put card field "P-Q" * card field "R:2" into card field "A-Q"
put card field "A-Q" * card field "R:3" into card field "C-Q"
put card field "C-Q" * card field "R:4" into card field "D-Q"
--calculate for Monthly Activity
put card field "GOAL" / card field "AVG SALE" / 12 into card field "S-M"
put card field "S-M" * card field "R:1" into card field "P-M"
put card field "P-M" * card field "R:2" into card field "A-M"
put card field "A-M" * card field "R:3" into card field "C-M"
put card field "C-M" * card field "R:4" into card field "D-M"
--calculate for Weekly Activity, based on a 50 week working year
set the numberFormat to "0.0"
put card field "GOAL" / card field "AVG SALE" / 50 into card field "S-W"
put card field "S-W" * card field "R:1" into card field "P-W"
put card field "P-W" * card field "R:2" into card field "A-W"
put card field "A-W" * card field "R:3" into card field "C-W"
put card field "C-W" * card field "R:4" into card field "D-W"
--calculate for Daily Activity, based on working 240 days per year
set the numberFormat to "0.00"
put card field "GOAL" / card field "AVG SALE" / 240 into card field "S-D"
put card field "S-D" * card field "R:1" into card field "P-D"
put card field "P-D" * card field "R:2" into card field "A-D"
put card field "A-D" * card field "R:3" into card field "C-D"
put card field "C-D" * card field "R:4" into card field "D-D"
play "harpsichord" tempo 180 "a es eq es f# g# a b c#5q a4s aq g#3s a b aq ew"
end mouseUp
-- part 2 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=214 top=83 right=104 bottom=307
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: GOAL
----- HyperTalk script -----
on closeField
set numberFormat to "$0.00"
end closeField
-- part 3 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=214 top=105 right=124 bottom=307
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: AVG SALE
-- part 4 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=214 top=138 right=158 bottom=258
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: R:1
-- part 5 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=214 top=160 right=180 bottom=258
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: R:2
-- part 6 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=421 top=138 right=158 bottom=465
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: R:3
-- part 7 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=421 top=160 right=180 bottom=465
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: R:4
-- part 8 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=156 top=207 right=227 bottom=214
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: S-A
-- part 9 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=156 top=226 right=246 bottom=214
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: P-A
-- part 10 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=156 top=245 right=265 bottom=214
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: A-A
-- part 11 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=156 top=264 right=284 bottom=214
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: C-A
-- part 12 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=156 top=283 right=303 bottom=214
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: D-A
-- part 13 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=275 top=207 right=227 bottom=333
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: S-M
-- part 14 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=275 top=226 right=246 bottom=333
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: P-M
-- part 15 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=275 top=245 right=265 bottom=333
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: A-M
-- part 16 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=275 top=264 right=284 bottom=333
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: C-M
-- part 17 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=275 top=283 right=303 bottom=333
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: D-M
-- part 18 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=337 top=207 right=227 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: S-W
-- part 19 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=337 top=226 right=246 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: P-W
-- part 20 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=337 top=245 right=265 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: A-W
-- part 21 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=337 top=264 right=284 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: C-W
-- part 22 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=337 top=283 right=303 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: D-W
-- part 23 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=399 top=207 right=227 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: S-D
-- part 24 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=399 top=226 right=246 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: P-D
-- part 25 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=399 top=245 right=265 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: A-D
-- part 26 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=399 top=264 right=284 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: C-D
-- part 27 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=399 top=283 right=303 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: D-D
-- part 28 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=217 top=207 right=227 bottom=272
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: S-Q
-- part 29 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=217 top=226 right=246 bottom=272
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: P-Q
-- part 30 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=217 top=245 right=265 bottom=272
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: A-Q
-- part 31 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=217 top=264 right=284 bottom=272
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: C-Q
-- part 32 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=217 top=283 right=303 bottom=272
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: D-Q
-- part contents for card part 2
----- text -----
250000
-- part contents for card part 3
----- text -----
6000
-- part contents for card part 4
----- text -----
3
-- part contents for card part 5
----- text -----
1.5
-- part contents for card part 6
----- text -----
3
-- part contents for card part 7
----- text -----
6
-- part contents for card part 9
----- text -----
126
-- part contents for card part 10
----- text -----
189
-- part contents for card part 11
----- text -----
567
-- part contents for card part 12
----- text -----
3402
-- part contents for card part 13
----- text -----
3
-- part contents for card part 14
----- text -----
9
-- part contents for card part 15
----- text -----
14
-- part contents for card part 16
----- text -----
42
-- part contents for card part 17
----- text -----
252
-- part contents for card part 18
----- text -----
0.8
-- part contents for card part 19
----- text -----
2.4
-- part contents for card part 20
----- text -----
3.6
-- part contents for card part 21
----- text -----
10.8
-- part contents for card part 22
----- text -----
64.8
-- part contents for card part 23
----- text -----
0.17
-- part contents for card part 24
----- text -----
0.51
-- part contents for card part 25
----- text -----
0.77
-- part contents for card part 26
----- text -----
2.31
-- part contents for card part 27
----- text -----
13.86
-- part contents for card part 8
----- text -----
42
-- part contents for card part 28
----- text -----
10
-- part contents for card part 29
----- text -----
30
-- part contents for card part 30
----- text -----
45
-- part contents for card part 31
----- text -----
135
-- part contents for card part 32
----- text -----
810